package com.ruoyi.teaching.domain;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *  * <p>
 *  * 论坛专区管理
 *  * </p>
 *  *
 *  * @author 王旭
 *  * @since 2024-10-14
 *  
 */
@Data
@TableName("platform_f_zone")
@ApiModel(value = "PlatformFZone对象", description = "论坛专区管理")
public class PlatformFZone implements Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "专区id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "专区名字")
    @NotBlank(message = "专区名字不能为空")
    private String zoneName;

    @ApiModelProperty(value = "专业大类id")
    @NotNull(message = "请选择所属专业")
    private Integer specialtyId;

    @ApiModelProperty(value = "专业大类名称")
    @NotBlank(message = "请选择所属专业")
    private String specialtyName;

    @ApiModelProperty(value = "专区图标")
    @NotBlank(message = "请上传专区图标")
    private String zoneImg;

    @ApiModelProperty(value = "是否删除（0未删除1已删除）")
    private Integer delFlag;

    @ApiModelProperty(value = "创建者id")
    private Integer createId;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新者id")
    private Integer updateId;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;


}
